package org.example.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Customer {
    private Id id;
    private String title;  // 非必须
    private TenantId tenantId;
    private String country;
    private String state;  // 州
    private String city;  // 城市
    private String address;  // 地址
    private String address2;  // 地址栏2
    private String zip;  // 邮政编码
    private String phone;  // 电话号码
    private String email;


}
@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
class Id{
    private String idofId;
    private String entityType;
}
@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
class TenantId{
    private String idofTenantId;
    private String entityType;
}
